package com.framework.service;


import com.baomidou.mybatisplus.service.IService;
import com.framework.entity.sys.SysAgent;
import com.framework.entity.tran.TranTerBenefitDay;
import com.framework.entity.tran.TranTransactionInfo;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface TranTerBenefitDayService extends IService<TranTerBenefitDay> {

    /**
     * 分润记录
     * @param benefitDay
     */
    void insertTranTerBenefitDay(TranTerBenefitDay benefitDay);

    /**
     * 回退
     * @param deptId
     * @param date
     * @return
     */
    List<TranTerBenefitDay> queryReback(Long deptId, Date date);

    /**
     * 新增
     * @param agent
     * @param info
     * @param topOwnBenefit
     */
    void addNewRecord(SysAgent agent, TranTransactionInfo info, BigDecimal topOwnBenefit);

    /**
     * 验证id不重复
     * @param terBenefitId
     * @return
     */
    String verifyBenefitId(String terBenefitId);
}
